package com.dd.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Configuration
@ComponentScan(value = "com.dd",
        excludeFilters = {@ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = Controller.class)})
@PropertySource({"classpath:database.properties"})
@Import({JdbcConfig.class})
@EnableTransactionManagement // 开启事务管理
@EnableAspectJAutoProxy  //开启AOP
public class SpringConfig {
}
